<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>一元夺宝</title>
{php echo register_jssdk();}
<link rel="stylesheet" href="../addons/feng_duobao/template/css/css.css">
<script   src="../addons/feng_duobao/template/js/jquery.js" type="text/javascript"></script>
<script  src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript"></script>
</head>
<body style="background:#f6f6f8;">
<section class="top_bar"> 
	<a href="javascript:;" onclick="window.history.back();" title="返回" class="back"><i class="b_arr"></i>返回</a>
	<a href="{php echo $this->createMobileUrl('index')}" title="首页" class="home">首页</a>
	<h2 id="oneNavTitle">本期参与记录</h2>
</section>

<section class="wrap">
	<section id="oneUserJoinInfo" class="white_box">		<h3 class="pri_tit1"> 
			<a href="{php echo $this->createMobileUrl('details', array('id' => $_GPC['id']))}" title="{$goods['title']}">(第{$goods['periods']}期){$goods['title']}</a> 
		</h3>
		<div class="user_jion_info"> 
			<span class="abs_left">用户：<span id="oneUserNick" class="fc">{$re_list[0]['nickname']}</span></span>
		</div>
		<div class="lucky_code_list">
			<table id="oneUjoinList" width="100%" border="0" cellspacing="0" cellpadding="0" class="tb">
				<tbody><tr>
					<th>兑换时间</th>
					<th>兑换数量</th>
					<th>幸运号码</th>
				</tr>
			</tbody>				
				{loop $re_list $gid $lists}
				<tr>
					<td>{php echo date('Y-m-d',$lists['createtime'])}</td>
					<td>{$lists['count']}</td>
					<td><a name="viewMore" href="{php echo $this->createMobileUrl('showrecord', array('id' => $lists['id']))}" title="查看幸运码" class="chk_link" style="padding-left:0;">查看幸运码</a></td>
				</tr>
				{/loop} 
			</table>
		</div>
	</section>
</section>

<!-- <div id="oneCommonMsgBg" class="pop_layer"></div><div id="oneCommonMsgWrap" class="p_box"><a id="oneCommonMsgClose" href="javascript:;" title="关闭" class="p_clo"><i>关闭</i></a><div class="p_top"><h3 id="oneCommonMsgTitle">2015-01-09 15:58:39.312兑换的幸运码</h3></div><div class="p_cont"><div id="oneCommonMsgContent" class="more_code"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="tb"><tbody><tr><td>10000337</td><td>10005132</td><td>10003054</td></tr><tr><td>10001902</td></tr></tbody></table></div></div></div> -->

</body>
<script type="text/javascript">
function getRecord(id){
    var ajxurl="{php echo $this->createMobileUrl('Ajaxgetrecord').'&id='}"+id;
     $.ajax({
        type:"GET",
        url:ajxurl,
        dataType:'json',
        },
        success:function(data){
            if (data.success){
                var info = data.list;
                $('#container').append('<div id="oneCommonMsgBg" class="pop_layer"></div><div id="oneCommonMsgWrap" class="p_box"><a id="oneCommonMsgClose" href="javascript:;" title="关闭" class="p_clo"><i>关闭</i></a><div class="p_top"><h3 id="oneCommonMsgTitle">'+info.createtime+'兑换的幸运码</h3></div><div class="p_cont"><div id="oneCommonMsgContent" class="more_code"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="tb"><tbody>'+info.s_codes+'</tbody></table></div></div></div>');
            }
            else{
                alert('加载失败, 请重新尝试');
            }
        }
    });
}
wx.ready(function () {
	var shareData = {
		title: "{$share_data['share_title']}",
		desc: "{$share_data['share_desc']}",
		link: "{$to_url}",
		imgUrl: "{$_W['attachurl']}{$share_data['share_image']}",
	};
//分享朋友
	wx.onMenuShareAppMessage({
	    title: shareData.title,
	  	desc: shareData.desc,
	  	link: shareData.link,
	  	imgUrl:shareData.imgUrl,
	  	trigger: function (res) {
	  	},
	  	success: function (res) {
	    	window.location.href =adurl;
	  	},
	  	cancel: function (res) {
	  	},
	  	fail: function (res) {
	    	alert(JSON.stringify(res));
	  	}
	});
	//朋友圈
	wx.onMenuShareTimeline({
	  	title: shareData.title+"---"+shareData.desc,
	  	link: shareData.link,
	  	imgUrl:shareData.imgUrl,
	  	trigger: function (res) {
	  	},
	  	success: function (res) {
	    	window.location.href =adurl;
	  	},
	  	cancel: function (res) {
	  	},
	  	fail: function (res) {
	    	alert(JSON.stringify(res));
	  	}
	});   

});
</script>
</html>